package com.softeem.score.model.entity.system;

import com.softeem.score.model.entity.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhu
 * @since 2024-02-14
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description="SysMenu对象")
public class SysMenu extends BaseEntity {

    @Schema(description = "父节点id")
    private Long parentId;

    @Schema(description = "节点标题")
    private String title;

    @Schema(description = "组件名称")
    private String component;

    @Schema(description = "排序值")
    private Integer sortValue;

    @Schema(description = "状态(0:禁止,1:正常)")
    private Integer status;

    // 下级列表
    @Schema(description = "子节点")
    private List<SysMenu> children;
}
